﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ContractItemizedReceipt.aspx.cs" Inherits="Client_Revenue.ContractItemizedReceipt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link type="text/css" href="Styles/datagrid.css" rel="stylesheet" />
    <link type="text/css" href="Styles/detailgrid.css" rel="stylesheet" />
    <style type="text/css">
        TR.updated TD
        {
            background-color: yellow;
        }
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        .style1
        {
            width: 601px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<asp:ScriptManager ID="ScriptManager1" runat="server" />--%>
    <table style="text-align: justify; vertical-align: top; padding: 10 0 0 10; width: 100%">
        <tr>
            <td>
                <asp:Panel runat="server" ID="pnTopDetails">
                    <table style="text-align: justify; vertical-align: top; padding: 10 0 0 10; width: 100%">
                        <tr>
                            <td style="font-size: large; color: #000000; font-weight: bold">
                                <asp:Label runat="server" ID="lbInvCarrier" />
                            </td>
                            <td style="color: #000000; font-weight: bold; padding: 0 10">
                                Invoice No:
                                <asp:Label runat="server" ID="lbInvNum" ForeColor="Red" />
                            </td>
                            <td style="font-size: large; color: #000000; font-weight: bold; padding: 0 10">
                                Commission Amount
                                <asp:Label runat="server" ID="lbInvAmount" ForeColor="Red" Font-Size="Large" Font-Bold="True" />
                            </td>
                            <td style="color: #000000; font-weight: bold; padding: 0 10">
                                Received On:
                                <asp:Label runat="server" ID="lbInvDate" ForeColor="Red" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:UpdatePanel ID="upItemize" runat="server">
                    <ContentTemplate>
                        <table style="text-align: justify; vertical-align: top; padding: 10 0 0 10; width: 100%">
                            <tr>
                                <td>
                                    <h5>
                                        Business Lines</h5>
                                    <asp:RadioButtonList ID="rbLineOfBiz" runat="server" RepeatDirection="Horizontal"
                                        RepeatColumns="5" DataValueField="LineOfBusinessId" DataTextField="LoBName" AutoPostBack="True" />
                            </tr>
                            <tr>
                                <td>
                                    <h5>
                                        Revenue Type</h5>
                                    <asp:RadioButtonList ID="rbRevType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
                                        DataValueField="RevenueTypeId" DataTextField="RevenueTypeName" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h5>
                                        Client item details</h5>
                                    <table style="text-align: justify; vertical-align: top; padding: 10 0 0 10; width: 100%">
                                        <tr>
                                            <td colspan="2" class="style1">
                                                <asp:DropDownList ID="ddClients" runat="server" DataTextField="ClientName" DataValueField="ClientId"
                                                    OnSelectedIndexChanged="ddClients_SelectedIndexChanged" />
                                            </td>
                                            <td>
                                            
                                                            <asp:Button ID="btShowLineItem" runat="server"  Text="Line Amounts"
                                                                OnClick="btShowLineItem_Click" />
                                                <asp:Panel ID="pnLineItemPopUp" runat="server">
                                                    <asp:UpdatePanel ID="upLineItem" runat="server">
                                                        <ContentTemplate>
                                                            &nbsp;&nbsp; Line Item Totals<asp:TextBox ID="txtItemTotals" runat="server" Text="0.00" />
                                                           
                                                            </div>
                                                        </ContentTemplate>
                                                        <Triggers>
                                                            <asp:PostBackTrigger ControlID="btShowLineItem" />
                                                        </Triggers>
                                                    </asp:UpdatePanel>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtItemNotes" runat="server" Rows="2" TextMode="MultiLine" Width="436px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Button ID="bnAddDetails" runat="server" Text="Add Item" OnClick="bnAddDetails_Click" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="bnCancel" runat="server" Text="Cancel/Reset" OnClick="bnCancel_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblMessages" runat="server" Font-Bold="True" ForeColor="Red" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="bnAddDetails" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="gvItemsReceipt" runat="server" AutoGenerateColumns="true" CssClass="datagrid" AllowPaging="true">
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
